<template>
    <div class="search-wrap">
      <van-nav-bar
            title="详情"
            left-arrow
            @click-left="onClickLeft"
        />
    </div>    
</template>
  

<script setup lang="ts">
import { onMounted, onActivated, onDeactivated } from "vue";
import {useRouter } from "vue-router";
const router = useRouter()

const onClickLeft = () => router.back();
onMounted(() => {
    // console.log('onMounted222');
})
 
onActivated(() => {
  // console.log('onActivated被激活');
});
onDeactivated(() => {
  // console.log('onDeactivated离开');
});
</script>


<style scoped lang="less">
.search-wrap{
  width: 100%;
  height: 100%;
}
</style>
